import request from '@/utils/request'

export function getSqlTypeList() {
  return request({
    url: `/zsql/sqlType/search`,
    method: 'get',
  })
}

export function addSqlType(data) {
  return request({
    url: `/zsql/sqlType/add`,
    method: 'post',
    data
  })
}

export function updateSqlType(data) {
  return request({
    url: `/zsql/sqlType/update`,
    method: 'post',
    data
  })
}

export function deleteSqlType(data) {
  return request({
    url: `/zsql/sqlType/delete/${data}`,
    method: 'delete',
  })
}

export function getSqlSettingList(data) {
  return request({
    url: `/zsql/sqlSetting/search`,
    method: 'post',
    data
  })
}

export function addSqlSetting(data) {
  return request({
    url: `/zsql/sqlSetting/add`,
    method: 'post',
    data
  })
}

export function updateSqlSetting(data) {
  return request({
    url: `/zsql/sqlSetting/update`,
    method: 'post',
    data
  })
}

export function deleteSqlSetting(data) {
  return request({
    url: `/zsql/sqlSetting/delete/${data}`,
    method: 'delete',
  })
}

export function getZhongZhengData(data) {
  return request({
    url: `/zzhongzheng/list/`,
    method: 'post',
    data
  })
}
